<?php

$db->delete('site_pages', $db->quoteInto("id=?", $_POST['id']) . ' AND ' . $db->quoteInto("site_id=?", $site['id']));
echo json_encode(array('id' => $_POST['id']));